package com.yqy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yqy.entity.StudentGrade;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;

/**
 * @author yiqianyi
 * @date 2022/3/23 9:23
 */
@Component
public interface StudentGradeMapper extends BaseMapper<StudentGrade> {
    /**
     * 根据姓名进行修改所属班级（成绩表）
     * @param studentGrade 实体
     * @return int 修改行数
     * */
    @Update(value = "update student_grade set isClass = #{isClass} where username = #{username}")
    int updateByIsClass(StudentGrade studentGrade);
}
